package day20171129;

class Work4_4 {
    void operate(int c[]) {
        int i;
        for (i = 0; i < c.length; i++) c[i] = 3 * c[i];
    }
}

class ArrayExample4 {
    public static void main(String[] args) {
        Work4_4 a = new Work4_4();
        int b[] = {1, 2, 3, 4};
        a.operate(b);
        for (int i = 0; i < b.length; i++)
            System.out.println(b[i]);
    }
}

